package com.lagou.task08;
//手机卡类


public class PhoneCard {
    private String type;//卡类型
    private int number;//卡号
    private String userName;//用户名
    private String passWord;//密码
    private double accountBalance;//账户余额
    private int time;//通话时长(分钟)
    private double flow;//上网流量

    public PhoneCard() {
    }

    public PhoneCard(String type, int number, String userName, String passWord, double accountBalance, int time, double flow) {
        setType(type);//卡类型
        setNumber(number);//卡号
        setUserName(userName);//用户名
        setPassWord(passWord);//密码
        setAccountBalance(accountBalance);//账户余额
        setTime(time);//通话时长(分钟)
        setFlow(flow);//上网流量
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassWord() {
        return passWord;
    }

    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }

    public double getAccountBalance() {
        return accountBalance;
    }

    public void setAccountBalance(double accountBalance) {
        this.accountBalance = accountBalance;
    }

    public int getTime() {
        return time;
    }

    public void setTime(int time) {
        this.time = time;
    }

    public double getFlow() {
        return flow;
    }

    public void setFlow(double flow) {
        this.flow = flow;
    }

    public void show(){
        System.out.println("您的卡号和姓名为：" + getNumber() + "  " + getUserName() + ",当前余额：" + getAccountBalance());
    }


}
